class Dog {
    name: string
    age: number

    constructor(name: string, age: number) {
        this.name = name
        this.age = age
    }

    bark() {
        console.log('汪汪汪')
    }
}

let dog0 = new Dog('旺财', 19);
let dog1 = new Dog('旺财', 20);
let dog2 = new Dog('旺财', 12);
let dog3 = new Dog('旺财', 32);
console.log(dog0)
console.log(dog1)
console.log(dog2)
console.log(dog3)

